February 12, 2014

If you run the .REG file created by Chkunin using regedit, it always
says that it worked even if it didn't, so I created a vbscript program
called "Clean_registry.vbs" to clean the registry. 

You can use it 2 ways..

1 - Double-left-click on it to start it, and then enter the name of
    the .REG file to want to process. If you start it with CSCRIPT rather
    than with WSCRIPT, you can see some of the output.

2 - Create an entry in the SENDTO right-click menu for "Clean_registry.vbs".
    The default location is in "C:\Program Installation Monitor".
    To do this, create a shortcut to wherever you put it in the SENDTO
    right-click folder. For Windows 8, and probably Windows 7, this is in
    "C:\Users\<userid>\AppData\Roaming\Microsoft\Windows\SendTo".
    Right-click on "Clean_registry.vbs", then left-click on "Copy". 
    Go to your SENDTO folder and right-click on it.
    In the drop down menu, left-click on "Paste shortcut".
    If you want to rename it, right-click on it, then select "rename".

I have found that trying to delete a registry entry from 
"HKEY_LOCAL_MACHINE\Software" fails if you are not running in administrator
mode, so you may want to change the shortcut.

To run as an administrator, the "Target" in Properties/Shortcut must be 
something like...C:\WINDOWS\system32\cscript.exe 
 "C:\Program Installation Monitor\Clean_registry.vbs" all on one line.
Then you can left-click on "Advanced" near the bottom, and then 
click on "Run as Administrator" to set it.

You can now right-click on a .REG file, then left-click on "Clean registry"
to use "Clean_registry.vbs" to run it.


